
/**
 * 获取token
 */
export const getStorageToken = () => {
  let token = null
  // TODO luance 为后期做“保存密码”/“自动登录”作准备?不确定
  if (true) {
    token = localStorage.getItem("token");
  } else {
    token = sessionStorage.getItem("token");
  }
  return token;
}

/**
 * 设置token
 */
export const setStorageToken = (token) => {
  // TODO luance 为后期做“保存密码”/“自动登录”作准备?不确定
  if (true) {
    localStorage.setItem("token", token);
  } else {
    sessionStorage.setItem("token", token);
  }
}


